<script>

	$(function(){
		$( "button" ).button();
		$("#adminRadioSet").buttonset();
	});
	
	function loadAdminPage(page){
		$("#selectAdminSubpage").load(page);
	}
	
	function loadAdminPageWithReq(request, page){
		$.post(request, function(data) {
            $("#selectAdminSubpage").load(page);
        });
	}
	
	function setAccessLevel(){
		loadAdminPage("content/project/administration/setAccessLevel.jsp");
	}
	
	function editAccessLevel(){
		loadAdminPageWithReq("/proddev/controller?manager=adminManager&method=5", "content/project/administration/editAccessLevel.jsp");
	}
	
	function addRolesInDB(){
		loadAdminPageWithReq("/proddev/controller?manager=adminManager&method=6", "content/project/administration/editRoles.jsp");
	}
	
	function addDFX(){
		loadAdminPageWithReq("/proddev/controller?manager=adminManager&method=10", "content/project/administration/addDFX.jsp");
	}
	
	function addDFXGuideline(){
		loadAdminPageWithReq("/proddev/controller?manager=adminManager&method=10", "content/project/administration/dfxGuidelines.jsp");
	}

</script>

<div>
	<div id="adminRadioSet" style="width:100%; font-size:x-small">
		<input type="radio" name="radio" id="setAccessLevel" onclick="setAccessLevel()"/><label for="setAccessLevel"><b>Set access levels</b></label>
		<input type="radio" name="radio" id="editAccessLevel" onclick="editAccessLevel()"/><label for="editAccessLevel"><b>Edit access levels</b></label>
		<input type="radio" name="radio" id="editDocWorkflow" onclick="editDocWorkflow()"/><label for="editDocWorkflow"><b>Edit document workflow</b></label>
		<input type="radio" name="radio" id="addRolesInDB" onclick="addRolesInDB()"/><label for="addRolesInDB"><b>Add roles in Database</b></label>
		<input type="radio" name="radio" id="addDFX" onclick="addDFX()"/><label for="addDFX"><b>Add Design for X concept</b></label>
		<input type="radio" name="radio" id="addDFXGuideline" onclick="addDFXGuideline()"/><label for="addDFXGuideline"><b>Add DfX Guideline</b></label>
	</div>
	
	<div style="width:100%; float:left;">
		
		<jsp:include page="/pages/content/project/administration/selectAdminSubpage.jsp"></jsp:include>
		
	</div>
	<div style="clear:both"></div>

</div>